-
-
Notifications
You must be signed in to change notification settings - Fork 304
[dev_qorh] WEEK 02 solutions #2044
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
rivkode
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니다!
| 왜 피보나치 수열 같을까? 일단 그렇게 값을 계산해보자. | ||
|
|
||
| 시간 복잡도: O(n) | ||
| 공간 복잡도: O(n) | ||
|
|
||
| 근데 왜 피보나치인지는 생각해보고 업데이트 하기.. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오 저도 똑같은 생각으로 접근했는데 제 결론은 이런 문제가 나왔을 때 유사한 패턴이 보이면 점화식 세우고 풀어보자! 였습니다. ㅎㅎ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
그러네요! 꿀팁 감사합니다. ㅎㅎ 점화식 중요한 것 같아요!!
| 근데 어떻게든 못만듦. | ||
| */ | ||
|
|
||
| /** | ||
| 어제 해답을 보았으니, 다시한번 풀어보자. | ||
| 핵심은 투 포인터를 사용하는 것, 자료구조에 얽메이지 않는 것 | ||
| */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
최대한 답변을 보시지 않고 끝까지 풀어보신다는게 아주 중요한 것 같습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
공감해주셔서 감사합니다..!!!
| low++; | ||
| high--; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저는 처음에 여기서 한번 답을 찾았으면 break 로 끝내려고 했었는데 그렇게 되면 동일한 i 에 대해서 더 찾을 수 가 없는 예외케이스가 생기더라구요. 이 부분도 저는 문제풀면서 알게되었습니다 ㅎㅎ
답안 제출 문제
작성자 체크 리스트
In Review로 설정해주세요.검토자 체크 리스트
Important
본인 답안 제출 뿐만 아니라 다른 분 PR 하나 이상을 반드시 검토를 해주셔야 합니다!